package com.htu.controller;

import com.htu.service.SmsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/SmsController")
public class SmsController {
    @Autowired
    private SmsService smsService;
    @RequestMapping("/smsCode")
    public String smsCode(String telephone){
        return smsService.smsCode(telephone);
    }
}
